import request from '@/utils/axios'
/**获取当前用户信息 */
export function getCurrentUserInfo() {
  return request({
    url: '/user/current',
    method: 'get'
  })
}

/**获取当前用户列表 */
export function getUserBycriteria(data) {
  return request({
    url: '/admin/user/page',
    method: 'post',
    data
  })
}

export function editUser(id,data) {
  return request({
    url: `/admin/user/${id}`,
    method: 'put',
    data
  })
}

export function removeUser(id,data) {
  return request({
    url: `/admin/user/${id}`,
    method: 'delete',
    data
  })
}